﻿using System;
using System.Windows;

namespace UltimateNavigationFramework.Commands
{
    public class ControlNavigationCommandBehavior : NavigateCommandBehaviorBase
    {
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="obj"></param>
        public ControlNavigationCommandBehavior(UIElement obj)
            : base(obj)
        {
            if (obj == null) 
                throw new System.ArgumentNullException("obj");
        }

        /// <summary>
        /// Executes the command.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void Execute(Object sender, EventArgs e)
        {
            base.ExecuteCommand();
        }
    }
}
